From: Jan Beulich Date: Mon, 9 Jan 2012 14:55:00 +0000 (+0100) Subject: PCI: shrink pci_dev_info's is_extfn/is_virtfn members X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=51bfd20efaf85ec408998ba06b17d5e73d12537e;p=xen.git PCI: shrink pci_dev_info's is_extfn/is_virtfn members They are used as boolean flags only, so convert them accordingly (shrinking the structure size by 8 bytes). Signed-off-by: Jan Beulich Acked-by: Keir Fraser --- diff --git a/xen/arch/ia64/xen/hypercall.c b/xen/arch/ia64/xen/hypercall.c index bc4d8d7f24..130675e52f 100644 --- a/xen/arch/ia64/xen/hypercall.c +++ b/xen/arch/ia64/xen/hypercall.c @@ -695,8 +695,8 @@ long do_physdev_op(int cmd, XEN_GUEST_HANDLE(void) arg) if ( copy_from_guest(&manage_pci_ext, arg, 1) != 0 ) break; - pdev_info.is_extfn = manage_pci_ext.is_extfn; - pdev_info.is_virtfn = manage_pci_ext.is_virtfn; + pdev_info.is_extfn = !!manage_pci_ext.is_extfn; + pdev_info.is_virtfn = !!manage_pci_ext.is_virtfn; pdev_info.physfn.bus = manage_pci_ext.physfn.bus; pdev_info.physfn.devfn = manage_pci_ext.physfn.devfn; ret = pci_add_device(0, manage_pci_ext.bus, diff --git a/xen/include/xen/pci.h b/xen/include/xen/pci.h index 8066cafbc4..b57bb90f96 100644 --- a/xen/include/xen/pci.h +++ b/xen/include/xen/pci.h @@ -33,8 +33,8 @@ #define MAX_MSIX_TABLE_ENTRIES 2048 #define MAX_MSIX_TABLE_PAGES 8 struct pci_dev_info { - unsigned is_extfn; - unsigned is_virtfn; + bool_t is_extfn; + bool_t is_virtfn; struct { u8 bus; u8 devfn;